﻿#define _CRT_SECURE_NO_WARNINGS  1
//一定要动手，例子不管多么简单，建议至少自己手敲一遍看看是否理解了里头的细枝末节。
//一定要学会思考，思考为什么要这样，而不是那样。还要举一反三地思考
#include"Link_List.h"
int main()
{
	SListNode* plist = BuySListNode(1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 5);
	SListPushFront(&plist, 9);
	SListPushFront(&plist, 8);
	SListPushFront(&plist, 7);
	SListPushFront(&plist, 6);
	SListPopBack(&plist);
	SListPopFront(&plist);
	/*SListNode* n = SListFind(plist, 9);
	printf("%d \n",n->data);*/
	SListInsertAfter(plist, 99);
	SListEraseAfter(plist);

	SListPrint(plist);
	SListDestroy(plist);

	return 0;
}